package january.test_1_29;

import java.util.Scanner;

public class TestMain2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int m = scanner.nextInt();
        int n = scanner.nextInt();
        int max = Math.max(m,n);
        int i = 1;
        while (true) {
            if(max*i % m == 0 && max*i % n == 0) {
                System.out.println(max*i);
                return;
            }
            i++;
        }
    }
}
